home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1999 March / EnigmA AMIGA RUN 35 (1999)(G.R. Edizioni)(IT)[!][issue 1999-03].iso / earcd / devel / libx11 / include / x11 / xmu / closehook.h < prev    next >
C/C++ Source or Header  |  1999-01-01  |  2KB  |  66 lines

  1. /* $XConsortium: CloseHook.h,v 1.5 91/07/22 23:45:30 converse Exp $
  2.  *
  3.  * Copyright 1988 by the Massachusetts Institute of Technology
  4.  *
  5.  * Permission to use, copy, modify, and distribute this software and its
  6.  * documentation for any purpose and without fee is hereby granted, provided 
  7.  * that the above copyright notice appear in all copies and that both that 
  8.  * copyright notice and this permission notice appear in supporting 
  9.  * documentation, and that the name of M.I.T. not be used in advertising
  10.  * or publicity pertaining to distribution of the software without specific, 
  11.  * written prior permission. M.I.T. makes no representations about the 
  12.  * suitability of this software for any purpose.  It is provided "as is"
  13.  * without express or implied warranty.
  14.  *
  15.  * The X Window System is a Trademark of MIT.
  16.  *
  17.  * The interfaces described by this header file are for miscellaneous utilities
  18.  * and are not part of the Xlib standard.
  19.  */
  20.  
  21. #ifndef _XMU_CLOSEHOOK_H_
  22. #define _XMU_CLOSEHOOK_H_
  23.  
  24. #include <X11/Xfuncproto.h>
  25.  
  26. typedef caddr_t CloseHook;
  27.  
  28. typedef int (*XmuCloseHookProc)(
  29. #if NeedFunctionPrototypes
  30.     Display*    /* dpy */,
  31.     caddr_t    /* data */
  32. #endif 
  33. );
  34.  
  35. _XFUNCPROTOBEGIN
  36.  
  37. extern CloseHook XmuAddCloseDisplayHook(
  38. #if NeedFunctionPrototypes
  39.     Display *    /* dpy */,
  40.     XmuCloseHookProc    /* proc */,
  41.     caddr_t    /* arg */
  42. #endif
  43. );
  44.  
  45. extern Bool XmuLookupCloseDisplayHook(
  46. #if NeedFunctionPrototypes
  47.     Display *    /* dpy */,
  48.     CloseHook    /* handle */,
  49.     XmuCloseHookProc    /* proc */,
  50.     caddr_t    /* arg  */
  51. #endif
  52. );
  53.  
  54. extern Bool XmuRemoveCloseDisplayHook(
  55. #if NeedFunctionPrototypes
  56.     Display *    /* dpy */,
  57.     CloseHook    /* handle */,
  58.     XmuCloseHookProc    /* proc */,
  59.     caddr_t    /* arg */
  60. #endif
  61. );
  62.  
  63. _XFUNCPROTOEND
  64.  
  65. #endif /* _XMU_CLOSEHOOK_H_ */
  66.